package dw.catalog

import grails.rest.RestfulController

/**
 * Implementation of a REST interface for Product domain class.
 */
class ProductController extends RestfulController {

    static responseFormats = ['json', 'xml']
	
	ProductController() {
		super(Product)
	}
	
	/**
	 * Return a Product by its ID
	 * @param dwID Product ID string
	 * @return dw.catalog.Product
	 */
	def showByDwID(String dwID) {
		respond Product.findByDwID(dwID)
	}
}
